package com.jiaoyou.baojian.entity;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * Created by DemonZYM on 17/5/18.
 */

public class Contribution implements MultiItemEntity {

    /**
     * attractiveness : 39
     * contribution : 69,  // 土豪值
     * fromUserId : 21
     * id : 0
     * toUserId : 19
     */

    private int attractiveness;
    private int contribution;
    private int fromUserId;
    private int id;
    private int toUserId;

    public int getAttractiveness() {
        return attractiveness;
    }

    public void setAttractiveness(int attractiveness) {
        this.attractiveness = attractiveness;
    }

    public int getContribution() {
        return contribution;
    }

    public void setContribution(int contribution) {
        this.contribution = contribution;
    }

    public int getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(int fromUserId) {
        this.fromUserId = fromUserId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getToUserId() {
        return toUserId;
    }

    public void setToUserId(int toUserId) {
        this.toUserId = toUserId;
    }


    private boolean isTop = false;
    public void isTop(){
        isTop = true;
    }
    public static final int TYPE_TOP = 1;
    public static final int TYPE_NORMAL = 2;
    @Override
    public int getItemType() {
        if(isTop)
            return TYPE_TOP;
        else
            return TYPE_NORMAL;
    }
}
